import { get, post, put, del } from '@/js/api/dataSource'
export default {
	factory: {
		// 集团列表查询
		findAllFactorys () {
			return post({ url: 'archive/factory/pageQuery', responseComplete: true })
		},
		// 启用停用工厂
		updateEnables () {
			return put({ url: '/archive/factory/updateEnable', responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/factory/getNextCode' })
		},
		// 保存 新增修改
		saveOrUpdate () {
			return post({ url: '/archive/factory/saveOrUpdate', responseComplete: true })
		},
		findFactoryDetailById () {
			return get({ url: '/archive/factory/findDetailByParam' })
		},
		// 批量删除工厂
		deleteFactoryMulity () {
			return del({ url: '/archive/factory/batchDelete', responseComplete: true })
		},
		// 获得集团
		findGroupListAll () {
			return get({ url: '/archive/group/findGroupListAll' })
		},
		// 查询所有工厂信息 包含停用
		findListAll () {
			return get({ url: '/archive/factory/findListAll' })
		}
	}
}
